//load weixin js sdk
var ua_explorer = window.navigator.userAgent.toLowerCase();
if (ua_explorer.match(/MicroMessenger/i) == "micromessenger") {
    getScriptX("//res.wx.qq.com/open/js/jweixin-1.0.0.js");
}

function getScriptX(script) {
    $.ajax({
        url: script,
        dataType: "script",
        async: true, // <-- This is the key
        success: function () {
            $.getScript("/program/linkage_page/mgm2016_event07/js/wx_config.js");
        },
        error: function () {
            throw new Error("Could not load script " + script);
        }
    });
}

function wxAPIConfig() {

    // 隐藏分享功能
    wx.hideOptionMenu();

}